package chapter7;

public class Demo1 {

    public static void main(String[] args) {
        Anything anything1;
        anything1 = new Anything();
    }
}

class Anything{
    public Anything(){
        this("this 有参的构造方法");
        System.out.println("无参的构造方法");
    }

    public Anything(String string){
        System.out.println(string);
    }
}